﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace EFCore.Migrations.CFTK
{
    /// <inheritdoc />
    public partial class CFTK : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "CFTK",
                columns: table => new
                {
                    FtkId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    FirstKindId = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    FirstKindName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    SecondKindId = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    SecondKindName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    ThirdKindId = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    ThirdKindName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    ThirdSalaryId = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    ThirdSaleId = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    ThirdKindIsRetail = table.Column<bool>(type: "bit", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_CFTK", x => x.FtkId);
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "CFTK");
        }
    }
}
